package CB_C19;

import javafx.ext.swing.*;
import javax.swing.JPanel;
import javax.swing.JComponent;
import java.awt.BorderLayout;

public class SwingMediaView extends SwingComponent
{
   var panel: JPanel;
   public var player: java.awt.Component on replace
   {
        if(player != null)
            panel.add(player,BorderLayout.CENTER);
   }

public override function createJComponent(): JComponent
{
    panel= new JPanel();
    return panel;
    }
}